package cz.tomasdvorak.cars.dto;

import java.util.Date;
import java.io.Serializable;

public class ExpenseCriteria implements Serializable {
    private Date dateFrom;
    private Date dateTill;
    private ExpenseType expenseType;
    private Integer vehicle;

    public ExpenseCriteria(Date from, Date to, ExpenseType type, Integer vehicle) {
        this.dateFrom = from;
        this.dateTill = to;
        this.expenseType = type;
        this.vehicle = vehicle;
    }

    public ExpenseCriteria() {
        this(null, null, null, null);
    }

    public Date getDateFrom() {
        return dateFrom;
    }

    public void setDateFrom(Date dateFrom) {
        this.dateFrom = dateFrom;
    }

    public Date getDateTill() {
        return dateTill;
    }

    public void setDateTill(Date dateTill) {
        this.dateTill = dateTill;
    }

    public ExpenseType getExpenseType() {
        return expenseType;
    }

    public void setExpenseType(ExpenseType expenseType) {
        this.expenseType = expenseType;
    }

    public Integer getVehicle() {
        return vehicle;
    }

    public void setVehicle(Integer vehicle) {
        this.vehicle = vehicle;
    }
}
